const gulp=require("gulp");
// gulp.task("任务名称",回调函数);

//调用模块
const gulp_uglify=require("gulp-uglify");

const gulp_minCss=require("gulp-minify-css");

const gulp_minImg=require("gulp-imagemin");


//压缩js
gulp.task("uglify",function(){
    gulp.src("js/**/*").pipe(gulp_uglify()).pipe(gulp.dest("js1"));
});
//黑框中gulp uglify 调用

//压缩css
gulp.task("minCss",function(){
    gulp.src("css/**/*").pipe(gulp_minCss()).pipe(gulp.dest("css1"));
});
//黑框中gulp minCss 调用

//压缩图片
gulp.task("minImg",function(){
    gulp.src("images/page3/**/*").pipe(gulp_minImg()).pipe(gulp.dest("images1/page3"));
});
//黑框中 gulp minImg 调用

    //page1的pageimg  
    //page2的banner goods other
    //page4的information like MF
    //page6
    //page3


